<%@ page language="java" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"  %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>Mail Center</title>
  </head>
 
  <body>
  <center>  
    Mail center
    <table width="100%" height="100%" border="1">
    	<tr>
    		<td valign="top" width="10%">
    			<ul><a href="#" onclick="divoperation('1')">Inbox</a></ul>
    			<ul><a href="#" onclick="divoperation('2')">Outbox</a></ul>    			
				<ul><a href="#" onclick="divoperation('3')">Messages</a></ul>	    			
    		</td>
    		<td valign="top" width="90%">    		   
	    		<div id="1">  
	    		 	<table width="100%" height="100%">
		    		 	<tr>
		    		 	<td> </td>	
		    		 	<td width="10%">From</td>
		    		 	<td width="55%">mail contains</td>
		    		 	<td width="35%">Created on</td>	    		  		
		    			<b>Inbox</b>    	
		    			<s:iterator id="inbox" value="inboxlist" var="inboxlist">
		    				<tr>
		    					<td><input type="checkbox"></td>
		    					<td style="background: grey"><s:property value="fromId" /></td>
		    					<td style="background: grey"><s:property value="contains" /></td>		    					
		    					<td style="background: grey"><s:property value="createdOn"/> </td>
		    				</tr>
		    			</s:iterator>
	    			</table>	
	    		</div>    			
    			<div id="2">    		
    				<table width="100%" height="100%">
		    		 	<tr>
		    		 	<td> </td>	
		    		 	<td width="10%">From</td>
		    		 	<td width="55%">mail contains</td>
		    		 	<td width="35%">Created on</td>	      		  		
		    			<b>Outbox</b>    	
		    			<s:iterator id="outbox" value="outboxlist" var="outboxlist">
		    				<tr>
		    					<td><input type="checkbox"></td>
		    					<td style="background: grey"><s:property value="fromId" /></td>
		    					<td style="background: grey"><s:property value="contains" /></td>		    					
		    					<td style="background: grey"><s:property value="createdOn"/> </td>
		    				</tr>
		    			</s:iterator>
	    			</table>    		
    			</div>
    			<div id="3">    		
    				<table width="100%" height="100%">
		    		 	<tr>
		    		 	<td> </td>		    		 		
		    		 	<td width="10%">From</td>
		    		 	<td width="55%">mail contains</td>
		    		 	<td width="35%">Created on</td>	  	    		  		
		    			<b>Messages</b>    	
		    			<s:iterator id="message" value="message" var="message">
		    				<tr>
		    					<td><input type="checkbox"></td>
		    					<td style="background: grey"><s:property value="fromId" /></td>
		    					<td style="background: grey"><s:property value="contains" /></td>		    					
		    					<td style="background: grey"><s:property value="createdOn"/> </td>
		    				</tr>
		    			</s:iterator>
	    			</table>    		
    			</div>
    		</td>
    	</tr>
    </table>
    </center>
  </body>
</html>
